package com.huang.single;

//饿汉式 单例
public class Hungry {
        private Hungry(){

        }

        private final static Hungry instance=new Hungry();

        public static Hungry getInstance(){
            return instance;
        }
}
